package router

import (
	"biz-manager/handler"

	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/user/login", handler.UserLogin)
	r.POST("/rodeNode/add", handler.RodeNodeAdd)
	r.GET("/user/rode", handler.UserRode)
	r.GET("/rode/node", handler.RodeNode)
	r.POST("/goods/Add", handler.GoodsAdd)
	r.POST("/order/add", handler.OrderAdd)
	r.GET("/goodsOrder/list", handler.GoodsOrderList)
	r.GET("/goodsOrder/detail", handler.GoodsOrderDetail)
	return r
}
